* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
}

.container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

/* 顶部导航栏样式 */
.top-nav {
    width: 100%;
    height: 60px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.user-info {
    display: flex;
    gap: 20px;
}

.logout {
    color: white;
    text-decoration: none;
}

.logout:hover {
    text-decoration: underline;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 250px;
    background-color: #34495e;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    position: fixed;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #2c3e50;
}

.icon {
    margin-right: 10px;
}

/* 主要内容区域样式 */
.main-content {
    margin-left: 250px;
    margin-top: 60px;
    padding: 20px;
    flex: 1;
    background-color: #f5f6fa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: static;
        min-height: auto;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
}